<script>
function animal(type = 'cat'){
    console.log(type)
}
animal()
</script>